
<%@include file="menuanun.jsp"%>	
<!--EMPIEZA CONTENIDO-->
<table cellpadding="0" cellspacing="0" border="0" class="borderForm"
	align="center">
	<tr class="bgtitulo">
		<td colspan="3" class="Estilo1 titulo"><span class="Estilo2">Listado de Ofertas </span></td>
	</tr>
	<tr>
		<td valign="top" align="left" width="100%">
		
<table cellpadding="0" cellspacing="0" border="0" class="listGrilla">
<tr class="listHeader">
	<td></td>
    <td class="AitemHeader">Titulo</td>
    <td class="itemHeader">Vacantes</td>
    <td class="itemHeader">Fec. Inicio</td>
    <td class="itemHeader">Fec. Fin</td>
    <td class="itemHeader">Desc. Cargo</td>
    <td class="itemHeader">Editar</td>
    <td class="itemHeader">Eliminar</td>
</tr>
<%@page import="java.util.*, laborum2011.modelo.Oferta" %>
<%
List<Oferta> arreglo = (ArrayList<Oferta>)request.getAttribute("ofertas");
if(arreglo != null) { 
int i = 1;
int cantidad = 1;
for(Oferta x : arreglo) {
	if(cantidad%2==0){
%> 
<tr class="AlistItem">
<td class="itemList"><%=i++ %></td>
<td class="itemList"><% out.print(x.getTitulo()); %></td>
<td class="itemList"><% out.print(x.getVacantes()); %></td>
<td class="itemList"><% out.print(x.getFec_inicio()); %></td>
<td class="itemList"><% out.print(x.getFec_fin()); %></td>
<td class="itemList"><% out.print(x.getDesc_cargo()); %></td>
<td class="itemList"><a href="<%=request.getContextPath()%>/OfertaServlet?act=m&idOferta=<%=x.getId_oferta()%>" title="Editar Oferta"><img
								src="images/editar.png" alt="Editar Oferta" width="16"
								height="16" border="0"></a></td>
<td class="itemList"><a href="<%=request.getContextPath()%>/OfertaServlet?act=e&idOferta=<%=x.getId_oferta()%>" title="Eliminar Oferta"><img
								src="images/red-error_16px.gif" alt="Eliminar Oferta" width="16"
								height="16" border="0"></a></td>								
								
</tr>
<% 
}else{%>

	<tr class="BlistItem">
	<td class="itemList"><%=i++ %></td>
	<td class="itemList"><% out.print(x.getTitulo()); %></td>
	<td class="itemList"><% out.print(x.getVacantes()); %></td>
	<td class="itemList"><% out.print(x.getFec_inicio()); %></td>
	<td class="itemList"><% out.print(x.getFec_fin()); %></td>
	<td class="itemList"><% out.print(x.getDesc_cargo()); %></td>
	<td class="itemList"><a href="<%=request.getContextPath()%>/OfertaServlet?act=m&idOferta=<%=x.getId_oferta()%>" title="Editar Oferta"><img
								src="images/editar.png" alt="Editar Oferta" width="16"
								height="16" border="0"></a></td>
	<td class="itemList"><a href="<%=request.getContextPath()%>/OfertaServlet?act=e&idOferta=<%=x.getId_oferta()%>" title="Eliminar Oferta"><img
								src="images/red-error_16px.gif" alt="Eliminar Oferta" width="16"
								height="16" border="0"></a></td>
	</tr>
	
<% } cantidad++;
}  
  } %>
 
</table> 
</td>
</tr>
</table>
<!--FIN CONTENIDO-->
				
<%@include file="pie.jsp"%>	
